package org.opensourcedea.gui.menu;

import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.opensourcedea.gui.deaproblem.Navigation;

public class FileSaveItemListener implements SelectionListener {
	
	Navigation navigation;
	
	public FileSaveItemListener(Navigation parentNavigation) {
		navigation = parentNavigation;
	}
	
    public void widgetSelected(SelectionEvent event) {

//    	Control[] children = shell.getChildren();
//    	for (int i = 0; i < children.length; i++) {
//    		System.out.println(children[i].toString());
//    		children[i].setLocation(0,20);

    	navigation.setLabelText("Saved");
    }

    public void widgetDefaultSelected(SelectionEvent event) {
    	navigation.setLabelText("Saved");
    }
	
}
